Skip to content

Conversation

@adityacosmos24
Copy link
Contributor

@adityacosmos24 adityacosmos24 commented Oct 31, 2025

Description

This PR fixes the logout functionality by adding proper frontend logic to handle user logout. It checks for an existing token, sends a logout request to the backend, clears authentication state, and redirects the user to the home page upon success.

Semver Changes

  • Patch (bug fix, no new features)
  • Minor (new features, no breaking changes)
  • Major (breaking changes)

Issues

Closes #57

Checklist

  • Added frontend logout handler (handleLogout)
  • Fixed logout button functionality
  • Implemented toast notifications for success/error states
  • Cleared local storage and updated auth state on logout
  • I have read the [Contributing Guidelines](../Contributor_Guide/Contruting.md)

@Ayushivam22 Ayushivam22 merged commit 30e8eb8 into OPCODE-Open-Spring-Fest:main Nov 2, 2025
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: logout button not working

2 participants